import http from "~/utils/http";
//获取职称
export const getProfessionalList = (data) => {
  return http({
    url: "professional/list",
    method: "post",
    data
  });
};
//获取身份
export const getIdentityList = (data) => {
  return http({
    url: "identity/list",
    method: "post",
    data
  });
};
//获取医院
export const getHospitalList = (data) => {
  return http({
    url: "hospital/list",
    method: "post",
    data
  });
};
//获取科室
export const getDepartmentList = (data) => {
  return http({
    url: "department/list",
    method: "post",
    data
  });
};
//获取地区
export const getDistrictIndex = (data) => {
  return http({
    url: "districtIndex/list",
    method: "post",
    data
  });
};
//获取指定身份的科室
export const getDepartmentTree = id => {
  return http({
    url: "department/getDepartmentTree?identityId="+id,
    method: "get",
  });
};
//获取用户的认证信息
export const getAuthUserInfo = id => {
  return http({
    url: "userApprove/selectOne?userId="+id,
    method: "get",
  });
};
//设置用户的认证信息
export const setAuthUserInfo = (data) => {
  return http({
    url: "userApprove/save",
    method: "post",
    data
  });
};
